<?php
namespace app\api\controller;

use think\Controller;

class Lawyer extends Controller
{
    public function lawyerList(){
        $res = [];

        $laywer = new \app\admin\model\Lawyer();

        $where['status'] = 1;
        $rs = $laywer->getAll($where);
        if($rs){
            $res['data']['code'] = 1;
            $res['data']['list']['data'] = $rs;

            $res['data']['list']['describe'] = '北京兴龙兄弟传媒致力于为客户提供全球商律服务，联盟多家知名法律服务机构高质量、高效率、全方位的为客户创造价值。<br />      业务范围涵盖国际贸易、海外投资、公司并购与重组、资本证券、私募、投融资、知识产权、房地产、等专业领域。<br />兴龙兄弟传媒将努力发挥自身优势，整合资源为客户提供优质、高效的法律服务，让客户满意。';

            $res['data']['list']['img'] = 'https://qnyimg.bjxlxd.com/app/test/锤子.png';
        }else{
            $res['data']['code'] = 0;
        }
        $res['status'] = 200;
        echo json_encode($res);
    }

}